.class public Lcom/xingbook/ting/activity/TingPlayAct;
.super Lcom/xingbook/park/activity/BaseFragmentActivity;

# interfaces
.implements Landroid/view/GestureDetector$OnGestureListener;


# static fields
.field private static h:Lcom/xingbook/ting/activity/TingPlayAct;


# instance fields
.field public c:Lcom/xingbook/ui/t;

.field d:Lcom/xingbook/ting/activity/b;

.field private e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

.field private f:Landroid/view/GestureDetector;

.field private g:Landroid/view/View;

.field private i:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;-><init>()V

    new-instance v0, Lcom/xingbook/ting/activity/b;

    invoke-direct {v0, p0}, Lcom/xingbook/ting/activity/b;-><init>(Lcom/xingbook/ting/activity/TingPlayAct;)V

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->d:Lcom/xingbook/ting/activity/b;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->i:Z

    return-void
.end method

.method private a()V
    .locals 1

    const v0, 0x7f0a0252

    invoke-virtual {p0, v0}, Lcom/xingbook/ting/activity/TingPlayAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->g:Landroid/view/View;

    return-void
.end method

.method private a(I)V
    .locals 3

    const v2, 0x7f0a0252

    const/4 v0, 0x1

    if-ne p1, v0, :cond_1

    new-instance v0, Lcom/xingbook/ting/fragment/TingPlayContentFragment;

    invoke-direct {v0}, Lcom/xingbook/ting/fragment/TingPlayContentFragment;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {v0, v2, v1}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    new-instance v0, Lcom/xingbook/ting/fragment/TingPlayListFragment;

    invoke-direct {v0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {v0, v2, v1}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    goto :goto_0
.end method

.method public static a(Lcom/xingbook/audio/b/a;ILandroid/content/Context;ZZ)V
    .locals 3

    invoke-static {p2}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/xingbook/ting/play/j;->a(Lcom/xingbook/audio/b/a;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.ACTION_SELECTED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "index"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p2, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    if-eqz p4, :cond_1

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/ting/activity/TingPlayAct;

    invoke-direct {v1, p2, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    instance-of v2, p2, Landroid/app/Activity;

    if-nez v2, :cond_0

    const/high16 v2, 0x1000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_0
    invoke-virtual {p2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    :cond_1
    if-eqz p3, :cond_2

    instance-of v0, p2, Landroid/app/Activity;

    if-eqz v0, :cond_2

    check-cast p2, Landroid/app/Activity;

    invoke-virtual {p2}, Landroid/app/Activity;->finish()V

    :cond_2
    return-void
.end method

.method static synthetic a(Lcom/xingbook/ting/activity/TingPlayAct;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->b()V

    return-void
.end method

.method private b()V
    .locals 2

    invoke-static {p0}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v0

    iget-object v0, v0, Lcom/xingbook/ting/play/j;->g:Lcom/xingbook/ting/play/g;

    sget-object v1, Lcom/xingbook/ting/play/g;->d:Lcom/xingbook/ting/play/g;

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->finish()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.STOP"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/ting/activity/TingPlayAct;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->finish()V

    goto :goto_0
.end method

.method public static b(Lcom/xingbook/audio/b/a;ILandroid/content/Context;ZZ)V
    .locals 8

    const/4 v2, 0x0

    invoke-static {p2}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v4

    const/4 v0, 0x1

    iget-object v1, v4, Lcom/xingbook/ting/play/j;->f:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, v4, Lcom/xingbook/ting/play/j;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/xingbook/audio/b/a;->t()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v4}, Lcom/xingbook/ting/play/j;->h()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/audio/b/a;->h()Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-eq v1, v3, :cond_5

    :cond_0
    move v3, v2

    :cond_1
    if-nez v3, :cond_7

    invoke-virtual {v4, p0}, Lcom/xingbook/ting/play/j;->a(Lcom/xingbook/audio/b/a;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.ACTION_SELECTED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "index"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p2, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :goto_0
    if-eqz p4, :cond_3

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/ting/activity/TingPlayAct;

    invoke-direct {v0, p2, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    instance-of v1, p2, Landroid/app/Activity;

    if-nez v1, :cond_2

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_2
    invoke-virtual {p2, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    :cond_3
    if-eqz p3, :cond_4

    instance-of v0, p2, Landroid/app/Activity;

    if-eqz v0, :cond_4

    instance-of v0, p2, Landroid/app/Activity;

    if-eqz v0, :cond_4

    check-cast p2, Landroid/app/Activity;

    invoke-virtual {p2}, Landroid/app/Activity;->finish()V

    :cond_4
    return-void

    :cond_5
    invoke-virtual {p0}, Lcom/xingbook/audio/b/a;->h()Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v4}, Lcom/xingbook/ting/play/j;->c()Lcom/xingbook/audio/b/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/audio/b/a;->h()Ljava/util/ArrayList;

    move-result-object v6

    move v1, v2

    move v3, v0

    :goto_1
    invoke-virtual {v4}, Lcom/xingbook/ting/play/j;->h()I

    move-result v0

    if-ge v1, v0, :cond_1

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/b/n;

    invoke-virtual {v0}, Lcom/xingbook/b/n;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_6

    move v3, v2

    :cond_6
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_7
    invoke-virtual {v4}, Lcom/xingbook/ting/play/j;->d()I

    move-result v0

    if-eq p1, v0, :cond_8

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.ACTION_SELECTED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "index"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p2, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_0

    :cond_8
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.PLAY"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_0
.end method


# virtual methods
.method public a(Ljava/lang/String;ZZ)V
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->i:Z

    if-nez v0, :cond_0

    if-eqz p2, :cond_1

    :cond_0
    iput-boolean p3, p0, Lcom/xingbook/ting/activity/TingPlayAct;->i:Z

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    invoke-virtual {v0, p1}, Lcom/xingbook/ui/t;->setTitle(Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->f:Landroid/view/GestureDetector;

    invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const v4, 0x7f0a0251

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onCreate(Landroid/os/Bundle;)V

    sget-object v0, Lcom/xingbook/ting/activity/TingPlayAct;->h:Lcom/xingbook/ting/activity/TingPlayAct;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/xingbook/ting/activity/TingPlayAct;->h:Lcom/xingbook/ting/activity/TingPlayAct;

    invoke-virtual {v0}, Lcom/xingbook/ting/activity/TingPlayAct;->finish()V

    :cond_0
    sput-object p0, Lcom/xingbook/ting/activity/TingPlayAct;->h:Lcom/xingbook/ting/activity/TingPlayAct;

    const v0, 0x7f03004c

    invoke-virtual {p0, v0}, Lcom/xingbook/ting/activity/TingPlayAct;->setContentView(I)V

    new-instance v0, Lcom/xingbook/ui/t;

    new-instance v1, Lcom/xingbook/ting/activity/a;

    invoke-direct {v1, p0}, Lcom/xingbook/ting/activity/a;-><init>(Lcom/xingbook/ting/activity/TingPlayAct;)V

    invoke-direct {v0, p0, v1}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    const-string v1, ""

    iput-object v1, v0, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    iput-boolean v3, v0, Lcom/xingbook/ui/t;->j:Z

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02023f

    invoke-static {v1, v2}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, v0, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v1

    sget v2, Lcom/xingbook/ui/t;->b:I

    invoke-virtual {v0, v3, v3, v1, v2}, Lcom/xingbook/ui/t;->layout(IIII)V

    invoke-virtual {p0, v4}, Lcom/xingbook/ting/activity/TingPlayAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/ting/activity/TingPlayAct;->c:Lcom/xingbook/ui/t;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p0, v4}, Lcom/xingbook/ting/activity/TingPlayAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    sget v1, Lcom/xingbook/ui/t;->b:I

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    invoke-direct {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->a()V

    new-instance v0, Landroid/view/GestureDetector;

    invoke-direct {v0, p0, p0}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V

    iput-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->f:Landroid/view/GestureDetector;

    invoke-virtual {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    const v1, 0x7f0a0250

    new-instance v2, Lcom/xingbook/ting/fragment/TingPlayBottomFragment;

    invoke-direct {v2}, Lcom/xingbook/ting/fragment/TingPlayBottomFragment;-><init>()V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/xingbook/ting/activity/TingPlayAct;->a(I)V

    return-void
.end method

.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 6

    const/4 v0, 0x0

    const/high16 v5, 0x4348

    const/4 v1, -0x1

    :try_start_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    sub-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    const/high16 v3, 0x437a

    cmpl-float v2, v2, v3

    if-gtz v2, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ting/activity/TingPlayAct;->g:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    add-int/lit8 v3, v3, -0xf

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-gtz v2, :cond_0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ting/activity/TingPlayAct;->g:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    add-int/lit8 v3, v3, -0xf

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    sub-float/2addr v2, v3

    sget-object v3, Lcom/xingbook/c/e;->a:[I

    const/4 v4, 0x6

    aget v3, v3, v4

    div-int/lit8 v3, v3, 0x2

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_4

    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result v2

    cmpl-float v2, v2, v5

    if-lez v2, :cond_4

    iget-object v1, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {v1}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;->a()I

    move-result v1

    :cond_2
    :goto_1
    if-lez v1, :cond_3

    invoke-direct {p0, v1}, Lcom/xingbook/ting/activity/TingPlayAct;->a(I)V

    :cond_3
    const/4 v0, 0x1

    goto :goto_0

    :cond_4
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    sub-float/2addr v2, v3

    sget-object v3, Lcom/xingbook/c/e;->a:[I

    const/4 v4, 0x6

    aget v3, v3, v4

    div-int/lit8 v3, v3, 0x2

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_2

    invoke-static {p3}, Ljava/lang/Math;->abs(F)F

    move-result v2

    cmpl-float v2, v2, v5

    if-lez v2, :cond_2

    iget-object v1, p0, Lcom/xingbook/ting/activity/TingPlayAct;->e:Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

    invoke-virtual {v1}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;->b()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    goto :goto_1

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-direct {p0}, Lcom/xingbook/ting/activity/TingPlayAct;->b()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onLongPress(Landroid/view/MotionEvent;)V
    .locals 0

    return-void
.end method

.method protected onPause()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public onShowPress(Landroid/view/MotionEvent;)V
    .locals 0

    return-void
.end method

.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected onStop()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onStop()V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ting/activity/TingPlayAct;->f:Landroid/view/GestureDetector;

    invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method
